package operation;
import book.book;
import  book.booklist;
public class exit implements ioperation {
    public void work(booklist booklist){
        System.out.println("exit");
        int currentsize = booklist.getUsedsize();
        for(int i=0;i<currentsize;i++){
            booklist.setBooks(i,null);
        }
        System.exit(0);
        }
    }
